<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<meta name="viewport" content="width=1000, initial-scale=1.0, maximum-scale=1.0">
	    <!-- Loading Bootstrap -->
	    <link href="Public/Admin/Flat/dist/css/vendor/bootstrap.min.css" rel="stylesheet">
	    <!-- Loading Flat UI -->
	    <link href="Public/Admin/Flat/dist/css/flat-ui.css" rel="stylesheet">
	    <link href="Public/Admin/Flat/docs/assets/css/demo.css" rel="stylesheet">
	    <link rel="shortcut icon" href="Public/Admin/Flat/img/favicon.ico">
	    <!-- HTML5 shim, for IE6-8 support of HTML5 elements. All other JS at the end of file. -->
	    <!--[if lt IE 9]>
	      <script src="dist/js/vendor/html5shiv.js"></script>
	      <script src="dist/js/vendor/respond.min.js"></script>
	    <![endif]-->
	</head>
	<body>
		<div class="alert alert-success">编辑友链</div>
		<form action="" method="post" enctype="multipart/form-data">
	
		<div class="form-group">
			<label for="exampleInputEmail1">名称</label>
			<input  id="exampleInputEmail1" class="form-control" type="text"  name="lname" value="{{$oldData[0]['lname']}}">
		</div>
		<script type="text/javascript" src="Public/jquery-1.8.2.min.js"></script>
		<script type="text/javascript">
			$(function(){
				$('#a').click(function(){
					
					$str='<label for="exampleInputEmail1">logo</label><input id="exampleInputEmail1" class="form-control" type="file" name="logo" >';
					$('#img_box').html($str);
				})
				
			})
		</script>
		<div class="form-group" id="img_box">
		{{if value="$oldData[0]['logo']"}}		
			<img src="{{$oldData[0]['logo']}}" alt="" />
			<a id="a" href="javascript:;">x</a>
			<input type="hidden" name="logo"  value="{{$oldData[0]['logo']}}" />
		{{else}}	
			<label for="exampleInputEmail1">logo</label>
			<input id="exampleInputEmail1" class="form-control" type="file" name="logo" >
		{{endif}}		
		</div>
		<div class="form-group">
			<label for="exampleInputEmail1">url地址</label>
			<input  id="exampleInputEmail1" class="form-control" type="text"  name="url" value="{{$oldData[0]['url']}}">
		</div>
		
		<div class="form-group">
			<label for="exampleInputEmail1">排序</label>
			<input value="{{$oldData[0]['sort']}}"  id="exampleInputEmail1" class="form-control" type="text" placeholder="请输入分类排序"  name="sort" value="100">
		</div>	
		<input type="hidden" name="lid"  value="{{$oldData[0]['lid']}}" />
		<button class="btn btn-primary btn-block" type="submit"> 确定 </button>
		</form>
	</body>
</html>
